<?php

class User_Edit_Model extends CI_Model {

    public function __construct() {
        $this->load->database();
    }

    public function getDataUser($whr) {
        $SQl = "SELECT * FROM mt_user WHERE id_user = '" . $whr . "'";
        $resultSet = $this->db->query($SQl);
        return $resultSet;
    }

    public function updateDataUser($id_user, $arrVals) {
        $this->db->where('id_user', $id_user);
        $this->db->update("mt_user", $arrVals);
    }

}

?>
